package com.sina.shop.manage.service.admin;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.admin.Admin;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description: 后台管理admin的service
 * 段浩杰   2017-12-13-11:57
 */
public interface AdminManageService extends BaseService {

    Admin getAdmin(String account);

    Admin getAdmin(Long id);

    int deleteAdmin(Long id) throws DataException, UpdateException;

    Admin updateAdmin(Admin admin) throws UpdateException, DataException;

    Admin saveAdmin(Admin admin) throws CreateException, ResourceExistsException, DataException;

    List<Map<String, Object>> getAdminList(Admin admin, Long count[]);

    List<Map<String, Object>> getAdminIdAndNameList();
}
